package com.ctgu.rabbitmq.controller;

import com.ctgu.rabbitmq.service.WorkQueueService;
import com.ctgu.rabbitmq.utils.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ ClassName WorkQueueController
 * @ Author Alex2
 * @ Date 2025/8/23 16:15
 **/
@RestController
@RequestMapping("/api/workQueue")
public class WorkQueueController {

    @Autowired
    private WorkQueueService workQueueService;

    /**
     * @ Author: Alex
     * @ Description: 工作队列
     */
    // http://localhost:8080/api/workQueue/workQueue
    @GetMapping("workQueue")
    public ApiResult workQueue() {
        return workQueueService.workQueue();
    }

}
